x11: Decouple GLX from GdkX11GLContext
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 10 May 2021 14:07:08 +0000 (15:07 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 10 May 2021 19:44:35 +0000 (20:44 +0100)
commit03f76eccf5c5bc8132b4c7bddb9a087fcbbfd626
treec33e4e65ff47288b34d2386ea3a6e6237a97cdfc
parent7c1c8c53e79de93fcb60d56551d519450bec03a1
x11: Decouple GLX from GdkX11GLContext

If we want to add an EGL implementation for the X11 backend, we are
going to need to move the GLX bits into their own class. The first step
is to declare GdkX11GLContext as an abstract type, and then subclass it
into a GdkX11GLContextGLX type, which includes the whole GLX
implementation.
gdk/x11/gdkglcontext-glx.c [new file with mode: 0644]
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h
gdk/x11/meson.build